import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';


import { PagesModule } from './pages/pages.module';


import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';


// import { NzLayoutModule } from 'ng-zorro-antd/layout';
// import { NzMenuModule } from 'ng-zorro-antd/menu';
// import { DemoNgZorroAntdModule } from './core/ng-zorro-modules/ng-zorro-modules';


// import { FormsModule,ReactiveFormsModule } from '@angular/forms';

import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { IconsProviderModule } from './icons-provider.module';

import { NgxEchartsModule } from 'ngx-echarts';


import { AuthenticationModule } from "./authentication/authentication.module";
import { AuthenticationRoutingModule } from "./authentication/authentication-routing.module";
registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    PagesModule,
    AppRoutingModule,
    // FormsModule,
    // ReactiveFormsModule,

    // NzLayoutModule,
    // NzMenuModule,
    // DemoNgZorroAntdModule,

    AuthenticationRoutingModule,

    HttpClientModule,
    BrowserAnimationsModule,
    IconsProviderModule,

    AuthenticationModule,
    NgxEchartsModule.forRoot({
      /**
       * This will import all modules from echarts.
       * If you only need custom modules,
       * please refer to [Custom Build] section.
       */
      echarts: () => import('echarts'), // or import('./path-to-my-custom-echarts')
    }),

  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [AppComponent]
})
export class AppModule { }
